/*
 * Copyright (c)Shanghai Easy Deal Foreign Currency Exchange Co., Ltd.
 */
package com.ttc.service.impl;

import com.ttc.dao.dao_my.CustomerDao;
import com.ttc.entity.bean.User;
import com.ttc.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author benny
 * @date 2016/6/15
 * @description
 */
@Service("userServiceImpl")
public class UserServiceImpl implements UserService {

    @Resource
    private CustomerDao customerMapper;

    @Override
    public int countAll() {
        return customerMapper.countAll();
    }

    @Override
    public User getUserById(int id) {
        return customerMapper.getUserById(id);
    }

    @Override
    public int addUser(User user) {
        return customerMapper.addUser(user);
    }
}
